package com.rpcdemo.client;

import com.rpcdemo.entity.Contributor;
import feign.Param;
import feign.RequestLine;

import java.util.List;

/**
 * 该接口需要手动构造feign代理对象
 */
public interface GitHubClient {

    @RequestLine("GET /repos/{owner}/{repo}/contributors")
    List<Contributor> contributors(@Param("owner") String owner, @Param("repo") String repository);

}
